home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
ask_str.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
464b
|
19 lines
#include "ask_str.h"
int ask_str(rect r)
{
char buf[255];
int wid = r.width() - 3;
r = screenRect(r);
setviewport(r.origin.X, r.origin.Y, getmaxx(), getmaxy(), 1);
EditLine* editl
= new EditLine(loc(0, 0), wid,
253, BUTTON_BORDER, 0, 1);
editl->put_string("");
editl->show();
editl->exe();
setviewport(0, 0, getmaxx(), getmaxy(), 1);
delete editl;
return !(global_i[global_num] == 0);
}